<template lang="html">
  <div class="mine-header">
    <div class="header-img" @click='goBack'>
      <img src="../../../../static/img/mine-hear_01.png" alt=""/>
    </div>
    <p>{{title}}</p>
  </div>
</template>

<script>
export default {
  name:'MineHeader',
  props:{
    title:{
      type:String,
      default:''
    }
  },
  methods:{
    goBack(){
      this.$router.back(-1)
    }
  }
}
</script>

<style lang="less" scoped>
.mine-header{
  width: 100%;
  height: 88/100rem;
  background-color: #612499;
  color: #fff;
  position: relative;

  .header-img{
    position: absolute;
    width: 88/100rem;
    height: 88/100rem;
    top: 0;
    left:0;

    img{
      width:28/100rem;
      margin-left: 20/100rem;
      margin-bottom: 40/100rem;
      height: 42/100rem;
    }
  }
  p{
    font-size: 36/100rem;
    line-height: 88/100rem;
    text-align: center;
  }
}
</style>
